import java.util.Scanner;

public class Demo6 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("出拳");
		int num = sc.nextInt();
		for (;;) {
			if (num >= 0 && num <= 2) {
				switch (num) {

				case 0:
					System.out.println("石头");
					break;
				case 1:
					System.out.println(" 剪刀");
					break;
				case 2:
					System.out.println("布");
					break;
				default:
					break;
				}
				System.out.println("是否继续出拳(y)");
				String choice = sc.next();
				if (choice.equals("y") || choice.equals("Y")) {

				} else {
					break;
				}

			} else {
				System.out.println(" 输入0到2之间的整数");

			}
		}
	}

}
